package com.example.rbac.config;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

public class Handle implements InvocationHandler{
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {

        Select annotation = method.getAnnotation(Select.class);
        String value = annotation.value();
        System.out.println("执行sql..." + value);
        return proxy;
    }

}
